<?php

class HolderManager {

    private $aHolders;

    public function __construct() {

        $this->aHolders = array();

    }

    public function setHolder(Holder $oHolder) {

        $this->aHolders[$oHolder->getName()] = $oHolder;

    }

    public function hasHolderByName($sName) {

        return isset($this->aHolders[$sName]);

    }

    public function getHolderByName($sName) {

        return
            $this->hasHolderByName($sName)?
                $this->aHolders[$sName] :
                null
            ;

    }


}

?>